.class public Lcom/glympse/platform/common/Ticket;
.super Ljava/lang/Object;
.source "Ticket.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/glympse/platform/common/Ticket$CompareByExpireTime;,
        Lcom/glympse/platform/common/Ticket$CompareByLastUseTime;
    }
.end annotation


# instance fields
.field public m_alProximityStartTimes:[J

.field public m_fArrived:Z

.field public m_fArrivedNotification:Z

.field public m_fExpiring:Z

.field public m_fProximitySatisfied:Z

.field public m_fltCurDistMeters:F

.field public m_fltMinDistMeters:F

.field public m_lAutoExpireTime:J

.field public m_lCreatedTime:J

.field public m_lExpireTime:J

.field public m_lFirstUseTime:J

.field public m_lLastUseTime:J

.field public m_lStartTime:J

.field public m_lTicketId:J

.field public m_lUserId:J

.field public m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

.field public m_nDurationMs:I

.field public m_nSequence:I

.field public m_nUse:I

.field public m_nValid:I

.field public m_oDestination:Lcom/glympse/platform/common/Place;

.field public m_strMessage:Ljava/lang/String;

.field public m_strName:Ljava/lang/String;

.field public m_strUrl:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 4

    .prologue
    const v3, 0x7f7fffff

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    .line 54
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    .line 24
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    .line 25
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    .line 26
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    .line 27
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    .line 28
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 29
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lUserId:J

    .line 30
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    .line 31
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    .line 32
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    .line 33
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    .line 34
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 35
    new-instance v0, Lcom/glympse/platform/common/Place;

    invoke-direct {v0}, Lcom/glympse/platform/common/Place;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    .line 38
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    .line 39
    sget v0, Lcom/glympse/platform/common/ConfigBase;->ms_nDefaultDurationMs:I

    iput v0, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 41
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    .line 42
    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lAutoExpireTime:J

    .line 43
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltMinDistMeters:F

    .line 44
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltCurDistMeters:F

    .line 45
    const/16 v0, 0x8

    new-array v0, v0, [J

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    .line 46
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fProximitySatisfied:Z

    .line 47
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrived:Z

    .line 48
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrivedNotification:Z

    .line 51
    new-instance v0, Lcom/glympse/platform/GVector$Recipients;

    invoke-direct {v0}, Lcom/glympse/platform/GVector$Recipients;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    .line 56
    return-void
.end method

.method public constructor <init>(J)V
    .locals 4
    .parameter "lTicketId"

    .prologue
    const v3, 0x7f7fffff

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    .line 59
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    .line 24
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    .line 25
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    .line 26
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    .line 27
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    .line 28
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 29
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lUserId:J

    .line 30
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    .line 31
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    .line 32
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    .line 33
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    .line 34
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 35
    new-instance v0, Lcom/glympse/platform/common/Place;

    invoke-direct {v0}, Lcom/glympse/platform/common/Place;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    .line 38
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    .line 39
    sget v0, Lcom/glympse/platform/common/ConfigBase;->ms_nDefaultDurationMs:I

    iput v0, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 41
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    .line 42
    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lAutoExpireTime:J

    .line 43
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltMinDistMeters:F

    .line 44
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltCurDistMeters:F

    .line 45
    const/16 v0, 0x8

    new-array v0, v0, [J

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    .line 46
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fProximitySatisfied:Z

    .line 47
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrived:Z

    .line 48
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrivedNotification:Z

    .line 51
    new-instance v0, Lcom/glympse/platform/GVector$Recipients;

    invoke-direct {v0}, Lcom/glympse/platform/GVector$Recipients;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    .line 61
    iput-wide p1, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 62
    return-void
.end method

.method public constructor <init>(JI)V
    .locals 4
    .parameter "lTicketId"
    .parameter "nSequence"

    .prologue
    const v3, 0x7f7fffff

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    .line 65
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    .line 24
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    .line 25
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    .line 26
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    .line 27
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    .line 28
    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 29
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lUserId:J

    .line 30
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    .line 31
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    .line 32
    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    .line 33
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    .line 34
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 35
    new-instance v0, Lcom/glympse/platform/common/Place;

    invoke-direct {v0}, Lcom/glympse/platform/common/Place;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    .line 38
    const-string v0, ""

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    .line 39
    sget v0, Lcom/glympse/platform/common/ConfigBase;->ms_nDefaultDurationMs:I

    iput v0, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 41
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    .line 42
    const-wide v0, 0x7fffffffffffffffL

    iput-wide v0, p0, Lcom/glympse/platform/common/Ticket;->m_lAutoExpireTime:J

    .line 43
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltMinDistMeters:F

    .line 44
    iput v3, p0, Lcom/glympse/platform/common/Ticket;->m_fltCurDistMeters:F

    .line 45
    const/16 v0, 0x8

    new-array v0, v0, [J

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    .line 46
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fProximitySatisfied:Z

    .line 47
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrived:Z

    .line 48
    iput-boolean v2, p0, Lcom/glympse/platform/common/Ticket;->m_fArrivedNotification:Z

    .line 51
    new-instance v0, Lcom/glympse/platform/GVector$Recipients;

    invoke-direct {v0}, Lcom/glympse/platform/GVector$Recipients;-><init>()V

    iput-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    .line 67
    iput-wide p1, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 68
    iput p3, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    .line 69
    return-void
.end method

.method public constructor <init>(Lcom/glympse/platform/common/Ticket;)V
    .locals 6
    .parameter "oTicket"

    .prologue
    const v5, 0x7f7fffff

    const-wide/16 v2, 0x0

    const/4 v4, 0x0

    .line 72
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 23
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    .line 24
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    .line 25
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    .line 26
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    .line 27
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    .line 28
    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    .line 29
    const-wide/16 v2, -0x1

    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lUserId:J

    .line 30
    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    .line 31
    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    .line 32
    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    .line 33
    const-string v2, ""

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    .line 34
    const-string v2, ""

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 35
    new-instance v2, Lcom/glympse/platform/common/Place;

    invoke-direct {v2}, Lcom/glympse/platform/common/Place;-><init>()V

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    .line 38
    const-string v2, ""

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    .line 39
    sget v2, Lcom/glympse/platform/common/ConfigBase;->ms_nDefaultDurationMs:I

    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 41
    iput-boolean v4, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    .line 42
    const-wide v2, 0x7fffffffffffffffL

    iput-wide v2, p0, Lcom/glympse/platform/common/Ticket;->m_lAutoExpireTime:J

    .line 43
    iput v5, p0, Lcom/glympse/platform/common/Ticket;->m_fltMinDistMeters:F

    .line 44
    iput v5, p0, Lcom/glympse/platform/common/Ticket;->m_fltCurDistMeters:F

    .line 45
    const/16 v2, 0x8

    new-array v2, v2, [J

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    .line 46
    iput-boolean v4, p0, Lcom/glympse/platform/common/Ticket;->m_fProximitySatisfied:Z

    .line 47
    iput-boolean v4, p0, Lcom/glympse/platform/common/Ticket;->m_fArrived:Z

    .line 48
    iput-boolean v4, p0, Lcom/glympse/platform/common/Ticket;->m_fArrivedNotification:Z

    .line 51
    new-instance v2, Lcom/glympse/platform/GVector$Recipients;

    invoke-direct {v2}, Lcom/glympse/platform/GVector$Recipients;-><init>()V

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    .line 74
    iget-object v2, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    iput-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 75
    iget-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v3, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v3, v3, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    iput-wide v3, v2, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    .line 76
    iget-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v3, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v3, v3, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    iput-wide v3, v2, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    .line 77
    iget-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v3, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v3, v3, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    iput-object v3, v2, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    .line 78
    iget v2, p1, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    iput v2, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 81
    iget-object v2, p1, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v2}, Lcom/glympse/platform/GVector$Recipients;->elements()Ljava/util/Enumeration;

    move-result-object v0

    .local v0, iter:Ljava/util/Enumeration;
    :goto_0
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-nez v2, :cond_0

    .line 87
    return-void

    .line 83
    :cond_0
    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/glympse/platform/common/Recipient;

    .line 85
    .local v1, oRecipient:Lcom/glympse/platform/common/Recipient;
    iget-object v2, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    new-instance v3, Lcom/glympse/platform/common/Recipient;

    invoke-direct {v3, v1}, Lcom/glympse/platform/common/Recipient;-><init>(Lcom/glympse/platform/common/Recipient;)V

    invoke-virtual {v2, v3}, Lcom/glympse/platform/GVector$Recipients;->addElement(Ljava/lang/Object;)V

    goto :goto_0
.end method


# virtual methods
.method public Compare(Lcom/glympse/platform/common/Ticket;)Z
    .locals 11
    .parameter "oTicket"

    .prologue
    const/4 v10, 0x0

    .line 537
    if-nez p1, :cond_0

    move v6, v10

    .line 586
    :goto_0
    return v6

    .line 542
    :cond_0
    move-object v5, p0

    .line 545
    .local v5, oTicketCur:Lcom/glympse/platform/common/Ticket;
    iget v6, p1, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    iget v7, v5, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    if-ne v6, v7, :cond_5

    .line 546
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v6, v6, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    iget-object v8, v5, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v8, v8, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    cmpl-double v6, v6, v8

    if-nez v6, :cond_5

    .line 547
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v6, v6, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    iget-object v8, v5, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v8, v8, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    cmpl-double v6, v6, v8

    if-nez v6, :cond_5

    .line 548
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v6}, Lcom/glympse/platform/GVector$Recipients;->size()I

    move-result v6

    iget-object v7, v5, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v7}, Lcom/glympse/platform/GVector$Recipients;->size()I

    move-result v7

    if-ne v6, v7, :cond_5

    .line 549
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v6, v6, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, v5, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v7, v7, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v7}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 550
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, v5, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v7}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 553
    const/4 v0, 0x0

    .line 554
    .local v0, fFound:Z
    iget-object v6, p1, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v6}, Lcom/glympse/platform/GVector$Recipients;->elements()Ljava/util/Enumeration;

    move-result-object v1

    .local v1, iterRecipient1:Ljava/util/Enumeration;
    :cond_1
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v6

    if-nez v6, :cond_2

    .line 581
    :goto_1
    if-eqz v0, :cond_5

    .line 583
    const/4 v6, 0x1

    goto :goto_0

    .line 556
    :cond_2
    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/Recipient;

    .line 559
    .local v3, oRecipient1:Lcom/glympse/platform/common/Recipient;
    const/4 v0, 0x0

    .line 560
    iget-object v6, v5, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v6}, Lcom/glympse/platform/GVector$Recipients;->elements()Ljava/util/Enumeration;

    move-result-object v2

    .local v2, iterRecipient2:Ljava/util/Enumeration;
    :cond_3
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v6

    if-nez v6, :cond_4

    .line 573
    :goto_2
    if-nez v0, :cond_1

    goto :goto_1

    .line 562
    :cond_4
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/glympse/platform/common/Recipient;

    .line 565
    .local v4, oRecipient2:Lcom/glympse/platform/common/Recipient;
    iget-object v6, v3, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iget-object v7, v4, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v7}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 567
    const/4 v0, 0x1

    .line 568
    goto :goto_2

    .end local v0           #fFound:Z
    .end local v1           #iterRecipient1:Ljava/util/Enumeration;
    .end local v2           #iterRecipient2:Ljava/util/Enumeration;
    .end local v3           #oRecipient1:Lcom/glympse/platform/common/Recipient;
    .end local v4           #oRecipient2:Lcom/glympse/platform/common/Recipient;
    :cond_5
    move v6, v10

    .line 586
    goto/16 :goto_0
.end method

.method public CreateName()Ljava/lang/String;
    .locals 10

    .prologue
    const/16 v9, 0x20

    .line 114
    new-instance v5, Ljava/lang/StringBuffer;

    invoke-direct {v5}, Ljava/lang/StringBuffer;-><init>()V

    .line 115
    .local v5, strbuf:Ljava/lang/StringBuffer;
    const/4 v0, 0x0

    .line 118
    .local v0, fAppend:Z
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v6, v6, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_1

    .line 120
    if-eqz v0, :cond_0

    const-string v6, "; "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_0
    const/4 v0, 0x1

    .line 121
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v6, v6, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 125
    :cond_1
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v6

    if-nez v6, :cond_3

    .line 127
    if-eqz v0, :cond_2

    const-string v6, "; "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_2
    const/4 v0, 0x1

    .line 128
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 132
    :cond_3
    const/4 v1, 0x0

    .line 133
    .local v1, fRecipient:Z
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v6}, Lcom/glympse/platform/GVector$Recipients;->elements()Ljava/util/Enumeration;

    move-result-object v2

    .local v2, iter:Ljava/util/Enumeration;
    :goto_0
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v6

    if-nez v6, :cond_6

    .line 145
    iget v6, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    if-lez v6, :cond_5

    .line 147
    if-eqz v0, :cond_4

    const-string v6, "; "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const/4 v0, 0x1

    .line 148
    :cond_4
    iget v6, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    int-to-long v6, v6

    const/4 v8, 0x0

    invoke-static {v6, v7, v8}, Lcom/glympse/platform/common/Helpers;->ElapsedToShortStr(JZ)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 152
    :cond_5
    invoke-virtual {v5}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v6

    const/16 v7, 0xd

    invoke-virtual {v6, v7, v9}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v6

    const/16 v7, 0xa

    invoke-virtual {v6, v7, v9}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v6

    const/16 v7, 0x9

    invoke-virtual {v6, v7, v9}, Ljava/lang/String;->replace(CC)Ljava/lang/String;

    move-result-object v4

    .line 155
    .local v4, str:Ljava/lang/String;
    return-object v4

    .line 135
    .end local v4           #str:Ljava/lang/String;
    :cond_6
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/Recipient;

    .line 137
    .local v3, oRecipient:Lcom/glympse/platform/common/Recipient;
    if-eqz v1, :cond_7

    const-string v6, ", "

    :goto_1
    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const/4 v0, 0x1

    .line 138
    const/4 v6, 0x4

    iget v7, v3, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v6, v7, :cond_9

    const-string v6, "Twitter"

    :goto_2
    invoke-virtual {v5, v6}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 141
    const/4 v1, 0x1

    goto :goto_0

    .line 137
    :cond_7
    if-eqz v0, :cond_8

    const-string v6, "; "

    goto :goto_1

    :cond_8
    const-string v6, ""

    goto :goto_1

    .line 139
    :cond_9
    const/4 v6, 0x5

    iget v7, v3, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v6, v7, :cond_a

    const-string v6, "Facebook"

    goto :goto_2

    .line 140
    :cond_a
    invoke-virtual {v3}, Lcom/glympse/platform/common/Recipient;->GetDisplayText()Ljava/lang/String;

    move-result-object v6

    goto :goto_2
.end method

.method public DestinationChanged()V
    .locals 5

    .prologue
    const v4, 0x7f7fffff

    const/4 v3, 0x0

    .line 98
    const-wide v1, 0x7fffffffffffffffL

    iput-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lAutoExpireTime:J

    .line 99
    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_fltMinDistMeters:F

    .line 100
    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_fltCurDistMeters:F

    .line 101
    iput-boolean v3, p0, Lcom/glympse/platform/common/Ticket;->m_fProximitySatisfied:Z

    .line 102
    iput-boolean v3, p0, Lcom/glympse/platform/common/Ticket;->m_fArrived:Z

    .line 103
    iput-boolean v3, p0, Lcom/glympse/platform/common/Ticket;->m_fArrivedNotification:Z

    .line 105
    const/4 v0, 0x0

    .local v0, i:I
    :goto_0
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    array-length v1, v1

    if-lt v0, v1, :cond_0

    .line 109
    return-void

    .line 107
    :cond_0
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_alProximityStartTimes:[J

    const-wide/16 v2, 0x0

    aput-wide v2, v1, v0

    .line 105
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public GetUrl(Ljava/lang/String;)Ljava/lang/String;
    .locals 10
    .parameter "strSource"

    .prologue
    const v9, 0xea60

    const/4 v8, 0x7

    .line 162
    new-instance v4, Ljava/lang/StringBuffer;

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "glympse:src="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {p1}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/glympse/platform/Platform;->UrlEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    .line 165
    .local v4, strbuf:Ljava/lang/StringBuffer;
    const/4 v1, 0x0

    .line 166
    .local v1, nCount:I
    iget-object v5, p0, Lcom/glympse/platform/common/Ticket;->m_listRecipients:Lcom/glympse/platform/GVector$Recipients;

    invoke-virtual {v5}, Lcom/glympse/platform/GVector$Recipients;->elements()Ljava/util/Enumeration;

    move-result-object v0

    .local v0, iter:Ljava/util/Enumeration;
    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v5

    if-nez v5, :cond_4

    .line 204
    iget v5, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    if-ltz v5, :cond_1

    .line 207
    iget v5, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    div-int/2addr v5, v9

    iget v6, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    rem-int/2addr v6, v9

    if-nez v6, :cond_7

    const/4 v6, 0x0

    :goto_1
    add-int v2, v5, v6

    .line 208
    .local v2, nDurMins:I
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&dur_mins="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 212
    .end local v2           #nDurMins:I
    :cond_1
    iget-object v5, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_2

    .line 214
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&msg_text="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/Platform;->UrlEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 218
    :cond_2
    iget-object v5, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    invoke-virtual {v5}, Lcom/glympse/platform/common/Place;->HasLocation()Z

    move-result v5

    if-eqz v5, :cond_3

    .line 220
    const-string v5, "&dest_type=geo"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 221
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&dest_addr="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v6, v6, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    invoke-static {v6, v7, v8}, Lcom/glympse/platform/common/Helpers;->DoubleToTrimmedStr(DI)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, ","

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    .line 222
    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v6, v6, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    invoke-static {v6, v7, v8}, Lcom/glympse/platform/common/Helpers;->DoubleToTrimmedStr(DI)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    .line 221
    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 225
    iget-object v5, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v5, v5, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_3

    .line 227
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&dest_name="

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v6, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v6, v6, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/Platform;->UrlEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 231
    :cond_3
    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v5

    return-object v5

    .line 168
    :cond_4
    invoke-interface {v0}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/Recipient;

    .line 170
    .local v3, oRecipient:Lcom/glympse/platform/common/Recipient;
    add-int/lit8 v1, v1, 0x1

    .line 173
    iget v5, v3, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    packed-switch v5, :pswitch_data_0

    goto/16 :goto_0

    .line 179
    :pswitch_0
    iget-object v5, v3, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 182
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&rec_type"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x2

    iget v7, v3, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v6, v7, :cond_5

    const-string v6, "email"

    :goto_2
    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 183
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&rec_addr"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, v3, Lcom/glympse/platform/common/Recipient;->m_strTo:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/Platform;->UrlEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 186
    iget-object v5, v3, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 188
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&rec_name"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    iget-object v6, v3, Lcom/glympse/platform/common/Recipient;->m_strDisplayName:Ljava/lang/String;

    invoke-static {v6}, Lcom/glympse/platform/Platform;->UrlEncode(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto/16 :goto_0

    .line 182
    :cond_5
    const-string v6, "sms"

    goto :goto_2

    .line 198
    :pswitch_1
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "&rec_type"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "="

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const/4 v6, 0x4

    iget v7, v3, Lcom/glympse/platform/common/Recipient;->m_eRecipientType:I

    if-ne v6, v7, :cond_6

    const-string v6, "twitter"

    :goto_3
    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    goto/16 :goto_0

    :cond_6
    const-string v6, "facebook"

    goto :goto_3

    .line 207
    .end local v3           #oRecipient:Lcom/glympse/platform/common/Recipient;
    :cond_7
    const/4 v6, 0x1

    goto/16 :goto_1

    .line 173
    :pswitch_data_0
    .packed-switch 0x2
        :pswitch_0
        :pswitch_0
        :pswitch_1
        :pswitch_1
    .end packed-switch
.end method

.method public HasLocation()Z
    .locals 1

    .prologue
    .line 92
    iget-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    invoke-virtual {v0}, Lcom/glympse/platform/common/Place;->HasLocation()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public Parse(Lcom/glympse/platform/GVector$NameValueNodes;)V
    .locals 9
    .parameter

    .prologue
    .local p1, listNameValues:Lcom/glympse/platform/GVector$NameValueNodes;,"Lcom/glympse/platform/GVector$NameValueNodes;"
    const/4 v8, 0x0

    .line 237
    const/4 v1, 0x0

    .line 240
    .local v1, fComputeDuration:Z
    invoke-virtual {p1}, Lcom/glympse/platform/GVector$NameValueNodes;->elements()Ljava/util/Enumeration;

    move-result-object v2

    .local v2, iter:Ljava/util/Enumeration;
    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v4

    if-nez v4, :cond_2

    .line 395
    if-eqz v1, :cond_1

    .line 397
    iget-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    iget-wide v6, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    sub-long/2addr v4, v6

    long-to-int v4, v4

    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 399
    :cond_1
    return-void

    .line 242
    :cond_2
    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/glympse/platform/common/NameValueNode;

    .line 245
    .local v3, oNodeCur:Lcom/glympse/platform/common/NameValueNode;
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_0

    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    if-eqz v4, :cond_0

    .line 251
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "tid"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 253
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->Base32ToLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    goto :goto_0

    .line 257
    :cond_3
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "uid"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_4

    .line 259
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->Base32ToLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lUserId:J

    goto :goto_0

    .line 263
    :cond_4
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "seq"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 265
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    goto :goto_0

    .line 269
    :cond_5
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "cts"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_6

    .line 271
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    goto :goto_0

    .line 275
    :cond_6
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "valid"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_7

    .line 277
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    .line 283
    iget v4, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    if-nez v4, :cond_0

    .line 285
    iput-boolean v8, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    goto/16 :goto_0

    .line 290
    :cond_7
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "use"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_8

    .line 292
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    goto/16 :goto_0

    .line 296
    :cond_8
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "futs"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_9

    .line 298
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    goto/16 :goto_0

    .line 302
    :cond_9
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "luts"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_a

    .line 304
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    goto/16 :goto_0

    .line 308
    :cond_a
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "url"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_b

    .line 311
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    .line 312
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 316
    :cond_b
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "type"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 322
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "sts"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_c

    .line 324
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    .line 325
    const/4 v1, 0x1

    goto/16 :goto_0

    .line 329
    :cond_c
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "ets"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_d

    .line 331
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseLong(Ljava/lang/String;)J

    move-result-wide v4

    iput-wide v4, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    .line 332
    const/4 v1, 0x1

    .line 337
    iget-boolean v4, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    if-eqz v4, :cond_0

    invoke-static {}, Lcom/glympse/platform/common/CorrectedTime;->GetTime()J

    move-result-wide v4

    const-wide/16 v6, 0xbb8

    add-long/2addr v4, v6

    iget-wide v6, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    cmp-long v4, v4, v6

    if-ltz v4, :cond_0

    .line 339
    iput-boolean v8, p0, Lcom/glympse/platform/common/Ticket;->m_fExpiring:Z

    goto/16 :goto_0

    .line 344
    :cond_d
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "msg"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_e

    .line 346
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    .line 347
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 351
    :cond_e
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "mpt"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_f

    .line 353
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v4

    if-nez v4, :cond_0

    .line 356
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/Platform;->ParseMpt(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 359
    .local v0, astrMpt:[Ljava/lang/String;
    array-length v4, v0

    const/4 v5, 0x2

    if-lt v4, v5, :cond_0

    .line 361
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    aget-object v5, v0, v8

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->ParseDouble(Ljava/lang/String;)D

    move-result-wide v5

    iput-wide v5, v4, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    .line 362
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    const/4 v5, 0x1

    aget-object v5, v0, v5

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->ParseDouble(Ljava/lang/String;)D

    move-result-wide v5

    iput-wide v5, v4, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    goto/16 :goto_0

    .line 368
    .end local v0           #astrMpt:[Ljava/lang/String;
    :cond_f
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "lbl"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_10

    .line 370
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v5, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v5}, Lcom/glympse/platform/common/Helpers;->SafeStr(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    .line 371
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v4, v4, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 375
    :cond_10
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "_name"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_11

    .line 377
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    iput-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    .line 378
    iget-object v4, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    invoke-virtual {v4}, Ljava/lang/String;->trim()Ljava/lang/String;

    goto/16 :goto_0

    .line 382
    :cond_11
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    const-string v5, "_dur"

    invoke-virtual {v4, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_12

    .line 384
    iget-object v4, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->ParseInt(Ljava/lang/String;)I

    move-result v4

    iput v4, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    .line 385
    const/4 v1, 0x0

    goto/16 :goto_0

    .line 391
    :cond_12
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "Unknown Ticket value: \""

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, v3, Lcom/glympse/platform/common/NameValueNode;->m_strName:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ":"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, v3, Lcom/glympse/platform/common/NameValueNode;->m_strValue:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "\""

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    goto/16 :goto_0
.end method

.method public Serialize(Ljava/lang/StringBuffer;)V
    .locals 10
    .parameter "strbuf"

    .prologue
    const/4 v9, 0x7

    const-wide/16 v7, 0x0

    const/16 v6, 0x22

    const-wide/16 v4, 0x0

    const/16 v3, 0x2c

    .line 404
    invoke-virtual {p1}, Ljava/lang/StringBuffer;->length()I

    move-result v1

    if-lez v1, :cond_1f

    const/4 v1, 0x1

    move v0, v1

    .line 407
    .local v0, fAppend:Z
    :goto_0
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_1

    .line 409
    if-eqz v0, :cond_0

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_0
    const/4 v0, 0x1

    .line 410
    const-string v1, "tid:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 411
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lTicketId:J

    invoke-static {v1, v2}, Lcom/glympse/platform/common/Helpers;->LongToBase32(J)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 415
    :cond_1
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    if-eqz v1, :cond_3

    .line 417
    if-eqz v0, :cond_2

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_2
    const/4 v0, 0x1

    .line 418
    const-string v1, "seq:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 419
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nSequence:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 423
    :cond_3
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_5

    .line 425
    if-eqz v0, :cond_4

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_4
    const/4 v0, 0x1

    .line 426
    const-string v1, "cts:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 427
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lCreatedTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 431
    :cond_5
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    if-eqz v1, :cond_7

    .line 433
    if-eqz v0, :cond_6

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_6
    const/4 v0, 0x1

    .line 434
    const-string v1, "valid:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 435
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nValid:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 439
    :cond_7
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    if-eqz v1, :cond_9

    .line 441
    if-eqz v0, :cond_8

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_8
    const/4 v0, 0x1

    .line 442
    const-string v1, "use:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 443
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nUse:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 447
    :cond_9
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_b

    .line 449
    if-eqz v0, :cond_a

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_a
    const/4 v0, 0x1

    .line 450
    const-string v1, "futs:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 451
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lFirstUseTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 455
    :cond_b
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_d

    .line 457
    if-eqz v0, :cond_c

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_c
    const/4 v0, 0x1

    .line 458
    const-string v1, "luts:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 459
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lLastUseTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 463
    :cond_d
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_f

    .line 465
    if-eqz v0, :cond_e

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_e
    const/4 v0, 0x1

    .line 466
    const-string v1, "url:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 467
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strUrl:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 468
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 472
    :cond_f
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_11

    .line 474
    if-eqz v0, :cond_10

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_10
    const/4 v0, 0x1

    .line 475
    const-string v1, "sts:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 476
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lStartTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 480
    :cond_11
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    cmp-long v1, v4, v1

    if-eqz v1, :cond_13

    .line 482
    if-eqz v0, :cond_12

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_12
    const/4 v0, 0x1

    .line 483
    const-string v1, "ets:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 484
    iget-wide v1, p0, Lcom/glympse/platform/common/Ticket;->m_lExpireTime:J

    invoke-virtual {p1, v1, v2}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    .line 488
    :cond_13
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_15

    .line 490
    if-eqz v0, :cond_14

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_14
    const/4 v0, 0x1

    .line 491
    const-string v1, "msg:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 492
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strMessage:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 493
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 497
    :cond_15
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v1, v1, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    cmpl-double v1, v7, v1

    if-nez v1, :cond_16

    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v1, v1, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    cmpl-double v1, v7, v1

    if-eqz v1, :cond_18

    .line 499
    :cond_16
    if-eqz v0, :cond_17

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_17
    const/4 v0, 0x1

    .line 500
    const-string v1, "mpt:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 501
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v1, v1, Lcom/glympse/platform/common/Place;->m_dLatitude:D

    invoke-static {v1, v2, v9}, Lcom/glympse/platform/common/Helpers;->DoubleToStr(DI)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 502
    const-string v1, ","

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 503
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-wide v1, v1, Lcom/glympse/platform/common/Place;->m_dLongitude:D

    invoke-static {v1, v2, v9}, Lcom/glympse/platform/common/Helpers;->DoubleToStr(DI)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 504
    const-string v1, "\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 508
    :cond_18
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v1, v1, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1a

    .line 510
    if-eqz v0, :cond_19

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_19
    const/4 v0, 0x1

    .line 511
    const-string v1, "lbl:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 512
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_oDestination:Lcom/glympse/platform/common/Place;

    iget-object v1, v1, Lcom/glympse/platform/common/Place;->m_strName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 513
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 517
    :cond_1a
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->IsEmpty(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1c

    .line 519
    if-eqz v0, :cond_1b

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_1b
    const/4 v0, 0x1

    .line 520
    const-string v1, "_name:\""

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 521
    iget-object v1, p0, Lcom/glympse/platform/common/Ticket;->m_strName:Ljava/lang/String;

    invoke-static {v1}, Lcom/glympse/platform/common/Helpers;->EncodeProtocolString(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer;

    .line 522
    invoke-virtual {p1, v6}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    .line 526
    :cond_1c
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    if-ltz v1, :cond_1e

    .line 528
    if-eqz v0, :cond_1d

    invoke-virtual {p1, v3}, Ljava/lang/StringBuffer;->append(C)Ljava/lang/StringBuffer;

    :cond_1d
    const/4 v0, 0x1

    .line 529
    const-string v1, "_dur:"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 530
    iget v1, p0, Lcom/glympse/platform/common/Ticket;->m_nDurationMs:I

    invoke-virtual {p1, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    .line 532
    :cond_1e
    return-void

    .line 404
    .end local v0           #fAppend:Z
    :cond_1f
    const/4 v1, 0x0

    move v0, v1

    goto/16 :goto_0
.end method
